import request from '@/utils/request'

// 查询素材库列表


export function listMatter(query) {
  return request({
    url: '/matter/matter/list',
    method: 'get',
    params: query
  })
}



// 查询素材库详细
export function getMatter(id) {
  return request({
    url: '/matter/matter/' + id,
    method: 'get'
  })
}

// 新增素材库
export function addMatter(data) {
  return request({
    url: '/matter/matter',
    method: 'post',
    data: data
  })
}

// 修改素材库
export function updateMatter(data) {
  return request({
    url: '/matter/matter',
    method: 'put',
    data: data
  })
}

// 删除素材库
export function delMatter(id) {
  return request({
    url: '/matter/matter/' + id,
    method: 'delete'
  })
}

// 导出素材库
export function exportMatter(query) {
  return request({
    url: '/matter/matter/export',
    method: 'get',
    params: query
  })
}
